home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / COSEmulator / COSEmulator- SRC / headers / BogusFinder.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  1.2 KB  |  61 lines  |  [TEXT/CWIE]

  1. #ifndef _BogusFinder_h_
  2. #define _BogusFinder_h_
  3.  
  4. #include "GameTypes.h"
  5. #include "Window.h"
  6. #include "Blitters.h"
  7. #include "Application.h"
  8. #include "MenuItem.h"
  9.  
  10.  
  11. #define    kNumFinderIcons        3
  12.  
  13. #define    kIconPhotoShop        0
  14. #define    kIconMacAmp            1
  15. #define    kIconQT                2
  16.  
  17. class    BogusFinder : public Application
  18. {
  19. public:
  20.     BogusFinder( void );
  21.     
  22.     Boolean    Init( void );
  23.     
  24.     virtual    void HandleEvent( ushort event , void *data );
  25.     
  26.     virtual    Boolean HandleMouseClick( Boolean down, point where );
  27.     virtual    void     HandleMouseMove( point where );
  28.     virtual void    CleanUp( rect *where );
  29.     
  30.     virtual void     Maintance( void );
  31.     
  32. private:
  33.     void            ChangeActive( Boolean act );
  34.     void            SetUpMenuItems( void );
  35.     void            HandleMenuSelect( uchar    which , uchar num );
  36.     
  37.     void            IconHandleMouseClick( Boolean down, point where );
  38.     void            IconHandleMouseMove( point where );
  39.     void            IconCleanUp( rect *where );
  40.     void            HandleIconClick( short which );
  41.     
  42.     MenuItem        FileMenu;
  43.     MenuItem        EditMenu;
  44.     MenuItem        ViewMenu;
  45.     MenuItem        SpecialMenu;
  46.     
  47. // icons
  48.     rect            icons[ kNumFinderIcons ];    // in buff
  49.     rect            screenIcon[ kNumFinderIcons ];
  50.     uchar            selectedIcon;
  51.     OffScreenBuff    iconBuff;
  52.     point            start;
  53.     Boolean            movingIcon;
  54.     Boolean            didMove;
  55.  
  56. // back ground
  57.  
  58.     OffScreenBuff    backGround;
  59. };
  60.  
  61. #endif